package 并发工具类CountDownLatch;

import java.util.concurrent.CountDownLatch;

public class Test {
    public static void main(String[] args) {
        CountDownLatch countDownLatch = new CountDownLatch(2);
        MotherThread motherThread = new MotherThread(countDownLatch);
        SonThread1 sonThread1 = new SonThread1(countDownLatch);
        SonThread2 sonThread2 = new SonThread2(countDownLatch);
        motherThread.start();
        sonThread1.start();
        sonThread2.start();

    }
}
